﻿//****************************************************************************************************
//Author:          Jun Wang
//Guid:		       ac9442d3-01eb-42d9-93f8-c94a203bcfa8
//DateTime:        3/4/2013 3:54:58 PM
//Email Address:   edu-wangjun@gedu.org
//FileName:        IntropManager
//CLR Version:     4.0.30319.18033
//Machine Name:    META-DESKTOP
//Namespace:       RuanRang.Media.Core.Internal.Interop
//Function:                
//Description:    
//****************************************************************************************************

using System;
using System.Collections;

namespace RuanRang.Media.Core
{
    public static class IntropHandleManager
    {
        /// <summary>
        /// Initializes the <see cref="IntropHandleManager" /> class.
        /// </summary>
        static IntropHandleManager()
        {
            //intptr VlcMediaList
            MediaListHandles = Hashtable.Synchronized(new Hashtable());

            //intptr mediabase
            MediaHandles = Hashtable.Synchronized(new Hashtable());
        }

        /// <summary>
        /// Gets the lib VLC handler intptr.
        /// </summary>
        /// <value>
        /// The lib VLC handler intptr.
        /// </value>
        public static IntPtr LibVlcHandle { get;  set; }

        /// <summary>
        /// Gets or sets the lib VLC player handle.
        /// </summary>
        /// <value>The lib VLC player handle.</value>
        public static IntPtr LibVlcPlayerHandle { get; set; }

        /// <summary>
        /// Gets or sets the media handle int PTR list.
        /// </summary>
        /// <value>
        /// The media handle int PTR list.
        /// </value>
        public static Hashtable MediaListHandles { get; private set; }

        /// <summary>
        /// Gets the media handles.
        /// </summary>
        /// <value>
        /// The media handles.
        /// </value>
        public static Hashtable MediaHandles { get; private set; }
    }
}
